<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="__STATIC__/AdminLTE/dist/img/user2-160x160.jpg" class="img-circle">
            </div>
            <div class="pull-left info">
                <p>Alexander Pierce</p>
                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>
        <!-- search form -->
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>
        <!-- /.search form -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu">
            <li class="header">MAIN NAVIGATION</li>
    {if condition="$adminData['id'] eq 1"}

            {volist name="permission" id="v"}

            <li class="treeview">
                <a href="#">
                    <i class="fa fa-dashboard"></i> <span>{$v.name}</span>
                    <span class="pull-right-container">
			            <i class="fa fa-angle-left pull-right"></i>
			        </span>
                </a>
                {volist name="v.child" id="vv"}
                <ul class="treeview-menu">
                    <li><a href="/{php} echo str_replace('@','/',$vv->premisson);{/php}"><i class="fa fa-circle-o"></i>{$vv.name}</a></li>
                </ul>
                {/volist}
            </li>
            {/volist}
            {else/}
            {volist name="permission" id="v"}

            <li class="treeview">
                <a href="#">
                    <i class="fa fa-dashboard"></i> <span>{$v.name}</span>
                    <span class="pull-right-container">
			            <i class="fa fa-angle-left pull-right"></i>
			        </span>
                </a>
                {volist name="v.child" id="vv"}
                <ul class="treeview-menu">
                {if condition="in_array($vv.id,$role)"}    <li><a href="/{php} echo str_replace('@','/',$vv->premisson);{/php}"><i class="fa fa-circle-o"></i>{$vv.name}</a></li>
{/if}
                </ul>
                {/volist}
            </li>
            {/volist}

{/if}

        </ul>

    </section>
    <!-- /.sidebar -->
</aside>
